package com.sdlight.snowflake.conf;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author lihaitao
 */
@Component
@RefreshScope
@Data
public class AppConfig {

    /**
     * zk连接字符串.
     */
    @Value("${leaf.snowflake.zk.conn}")
    private String zkConnStr;

    /**
     * 执行时间警告阈值.
     */
    @Value("${warnExecGtMs:10000}")
    private int warnExecGtMs;

}
